package com.shmet.tool.localcalltwo.controller;

import com.shmet.tool.localcalltwo.frame.ann.LocalReference;
import com.shmet.tool.localcalltwo.service.business.BusinessService;
import com.shmet.tool.localcalltwo.service.form.FormService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shmet
 * @date 2022/7/8 18:11
 * @desc
 */
@RestController
@RequestMapping(value = {"/api/common/bus/"})
public class BusController {

    @LocalReference
    private FormService formService;
    @LocalReference
    private BusinessService businessService;

    @RequestMapping("/hello/{module}")
    public String hello(@PathVariable String module) {
        return businessService.hello(module);
    }

    @RequestMapping("/getForm/{module}")
    public String getForm(@PathVariable String module) {
        return formService.getForm(module);
    }
}
